<?php
    include_once '../Datos/GestionNoticias.php';
    $gestion = new GestionNoticias();
    $mes = $_POST['mes'];
    $listanoticas = $gestion->getNoticiasPorMes($mes);
    echo "<table>";
    foreach ($listanoticas as $value) {
        echo "<tr><td>";
        echo "<a class='tituloNoticia' onclick='AbrirNoticia(".$value->getNotica_id().")'>".$value->getNombre()." (".$value->getFecha().")</a> ";
        echo "</td></tr>";
    }        
    echo "</table>";    

?>
